package com.huaxin.hxmodulestatisticalanalysis.dto.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 电压电流趋势图数据对象（5分钟平均值）
 */
public class VoltageCurrentTrendVO {
    @Schema(description = "时间窗口")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime timeWindow; // 时间窗口，如 2025-10-31 14:30:00
    @Schema(description = "A相电压平均值")
    private BigDecimal voltageA;      // A相电压平均值
    @Schema(description = "B相电压平均值")
    private BigDecimal voltageB;      // B相电压平均值
    @Schema(description = "C相电压平均值")
    private BigDecimal voltageC;      // C相电压平均值
    @Schema(description = "A相电流平均值")
    private BigDecimal currentA;      // A相电流平均值
    @Schema(description = "B相电流平均值")
    private BigDecimal currentB;      // B相电流平均值
    @Schema(description = "C相电流平均值")
    private BigDecimal currentC;      // C相电流平均值

    // Getters and Setters
    public LocalDateTime getTimeWindow() {
        return timeWindow;
    }

    public void setTimeWindow(LocalDateTime timeWindow) {
        this.timeWindow = timeWindow;
    }

    public BigDecimal getVoltageA() {
        return voltageA;
    }

    public void setVoltageA(BigDecimal voltageA) {
        this.voltageA = voltageA;
    }

    public BigDecimal getVoltageB() {
        return voltageB;
    }

    public void setVoltageB(BigDecimal voltageB) {
        this.voltageB = voltageB;
    }

    public BigDecimal getVoltageC() {
        return voltageC;
    }

    public void setVoltageC(BigDecimal voltageC) {
        this.voltageC = voltageC;
    }

    public BigDecimal getCurrentA() {
        return currentA;
    }

    public void setCurrentA(BigDecimal currentA) {
        this.currentA = currentA;
    }

    public BigDecimal getCurrentB() {
        return currentB;
    }

    public void setCurrentB(BigDecimal currentB) {
        this.currentB = currentB;
    }

    public BigDecimal getCurrentC() {
        return currentC;
    }

    public void setCurrentC(BigDecimal currentC) {
        this.currentC = currentC;
    }
}